package client;

import java.io.IOException;
import java.io.OutputStream;

import message.*;

public class SendMessageOpenService extends SendMessage {
	
	MessageOpenService m_message = new MessageOpenService();
	
	protected SendMessageOpenService(OutputStream OutputStream) throws IOException, SecurityException {
		super(OutputStream);
	}
	
	public String getM_sLogin() {
		return m_message.getM_sLogin();
	}

	public void setM_sLogin(String mSLogin) {
		m_message.setM_sLogin(mSLogin);
	}

	public String getM_sPassword() {
		return m_message.getM_sPassword();
	}

	public void setM_sPassword(String mSPassword) {
		m_message.setM_sPassword(mSPassword);
	}
	
	boolean sendMessage()
	{
		try {
			m_ObjectOutputStream.writeObject(this);
		} catch (IOException e) {
			e.printStackTrace();
		}
		return false;
	}
}
